package po;

/**
 * Create By IntelliJ IDEA
 *
 * @author: jsonor
 * @create-Time: 2017/10/17 8:18
 * @description: world数据库下的city表格对应的对象
 */
public class City {
  private Integer id;
  private String name;
  private String countryCode;
  private String district;
  private Integer population;

  public City(Integer id, String name, String countryCode, String district,
      Integer population) {
    this.id = id;
    this.name = name;
    this.countryCode = countryCode;
    this.district = district;
    this.population = population;
  }

  public City() {
    this(null, null, null, null, null);
  }


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getCountryCode() {
    return countryCode;
  }

  public void setCountryCode(String countryCode) {
    this.countryCode = countryCode;
  }

  public String getDistrict() {
    return district;
  }

  public void setDistrict(String district) {
    this.district = district;
  }

  public Integer getPopulation() {
    return population;
  }

  public void setPopulation(Integer population) {
    this.population = population;
  }


  @Override
  public String toString() {
    return "City {" +
        "id=" + id +
        ", name='" + name + '\'' +
        ", countryCode='" + countryCode + '\'' +
        ", district='" + district + '\'' +
        ", population=" + population +
        " }" + "\n";
  }
}
